added typing in lots of io places, added SileSlicer #695
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Added lots of typehints in the code, primarily in the io code base.
Changed the way the siesta.stdout siles handle data. They now rely on the SileSlicer and thus can be sliced upon calling. It makes the code a little simpler but also highligted some problems.
In particular the problem arise when the return function needs to do different things depending on whether the file is done reading, or not.
The defaults for stdoutSileSiesta has changed to read the next entry in the file. This is in contrast to the way it was. It will require users to adapt!
the reason for this can be found in the discussion in #586.
This streamlines the usage across the different parts of the IO handling.
@pfebrer I would be interested in your view on whether we could adapt these changes to the
read_scf
method, i.e. slicing would act on MD indices.isort .
andblack .
[24.2.0] at top-leveldocs/
CHANGELOG.md